import * as Sequelize from 'sequelize';

let BPM = new Sequelize('esbpm', 'sa', '123!@#qwe', {
    host: '191.188.18.9',
    dialect: "mssql",
    pool: {
        // max: 5,
        // min: 0,
        // idle: 10000
    }
    // SQLite only
    //storage: 'path/to/database.sqlite'
});
let test = BPM.authenticate().then(function () {
    console.log(" 连接BPM成功!!!!");
}).catch(function (err) {
    console.log("  连接BPM失败!!!!!!!!");
}).done();

export default BPM;
